package com.edu.bean;
/*
 * @Author:princess
 * @Date 2023/10/9 10 09 18:38
 *
 */

import java.io.Serializable;

public class Book implements Serializable {
    private Integer bookId;
    private String bookName;
    private String bookType;
    private Integer authorId;
    private Integer publishId;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public Integer getPublishId() {
        return publishId;
    }

    public void setPublishId(Integer publishId) {
        this.publishId = publishId;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookType='" + bookType + '\'' +
                ", authorId=" + authorId +
                ", publishId=" + publishId +
                '}';
    }

    public Book(String bookName, String bookType, Integer authorId, Integer publishId) {
        this.bookName = bookName;
        this.bookType = bookType;
        this.authorId = authorId;
        this.publishId = publishId;
    }

    public Book() {
    }
}
